<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Proyecto de Matemática Discreta 2 - Parte II: DINIC: Referencia del Archivo copia/glib/glist.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="UNCBL.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Proyecto de Matemática Discreta 2 - Parte II: DINIC</div>
   <div id="projectbrief">Cálculo de flujo maximal sobre un network aplicando el algoritmo de Dinic</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('copia_2glib_2glist_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Funciones</a>  </div>
  <div class="headertitle">
<div class="title">Referencia del Archivo copia/glib/glist.c</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;glist.h&quot;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Dependencia gráfica adjunta para glist.c:</div>
<div class="dyncontent">
<div class="center"><img src="copia_2glib_2glist_8c__incl.png" border="0" usemap="#copia_2glib_2glist_8c" alt=""/></div>
<map name="copia_2glib_2glist_8c" id="copia_2glib_2glist_8c">
</map>
</div>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a5addc01f5e53776b41ab9475e7fa6f59">g_list_alloc</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a854e205ef31d2f09c72eecf87a697130">g_list_free</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a74a986fdb039f75aaa921f56900a8d58">g_list_free_1</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ace92504270cab23bc2ecec535e67c9f3">g_list_free_full</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="glib_2gtypes_8h.html#a44a19db7c742be2745ca8e4abcaf3a91">GDestroyNotify</a> free_func)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a62f22a2386ab26eb3122f5cfc39f7542">g_list_append</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a67e41da1adf810675a3f80219abb3a21">g_list_prepend</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a6f0a6faa9f390274fb9380c587ac36ca">g_list_insert</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data, <a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a> position)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#aca9fa4a775a7045f49efc0ec43d6da7d">g_list_insert_before</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *sibling, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#aeec3ce9917bbee8a3f760b0e92f29846">g_list_concat</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list1, <a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#af50999802f999b56575af3e900ccd1d6">g_list_remove</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ab27a7271ebedbf4f761b80b624686b55">g_list_remove_all</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a2fdd458d0c82860966956a71d3466023">g_list_remove_link</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *llink)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a0af21a369c767f8a9aec049bd15cc259">g_list_delete_link</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *link_)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#aa9ae55f47cd2bdfc0f4a6afda1356dc0">g_list_copy</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ae1267bbe29acab30f89ab8e272293e7d">g_list_reverse</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#abda742750492489d51e20e42117fe9de">g_list_nth</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a> n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a20a8a5b67391006022631ab4c1a6891a">g_list_nth_prev</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a> n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a895a730faf000b8eb288a19ed09e0d3b">g_list_nth_data</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a> n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#adf7bbf496eec07e3ded2da1512c138a4">g_list_data</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a067884815231223277442e4f0a38af24">g_list_find</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ac113d1bab7b7717aad87f750f721d68e">g_list_find_custom</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> data, <a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a> func)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a17eadc99e076060f5f5b27de1a195b4a">g_list_position</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *llink)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a058dc6012370d86515825363983b2b52">g_list_index</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a134a27d2919b206e455edbf9e5cdf713">g_list_last</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a4527986b2894404883f458ec7f2cb7c7">g_list_first</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a86ccb0afcc8bacceeca60349d39dfebc">g_list_length</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a8bb27637a918563f009f26dab7a482a1">g_list_foreach</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="glib_2gtypes_8h.html#a87e2c2832a8f8d8b0a32102f986dc67b">GFunc</a> func, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> user_data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#a9a571a285fe181ad5e35182d98f5d980">g_list_insert_sorted</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data, <a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a> func)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ae330a1239fd8568f907bb5a9ad5edbc4">g_list_insert_sorted_with_data</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> data, <a class="el" href="glib_2gtypes_8h.html#a2d1f7b50283557b228e7d7e7679f4064">GCompareDataFunc</a> func, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> user_data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#ae96cccb4748f13729156266b5d16601c">g_list_sort</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a> compare_func)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="copia_2glib_2glist_8c.html#aca49e058d8ff9feef8fb7cabafa9ce3a">g_list_sort_with_data</a> (<a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *list, <a class="el" href="glib_2gtypes_8h.html#a2d1f7b50283557b228e7d7e7679f4064">GCompareDataFunc</a> compare_func, <a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> user_data)</td></tr>
</table>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="a5addc01f5e53776b41ab9475e7fa6f59"></a><!-- doxytag: member="glist.c::g_list_alloc" ref="a5addc01f5e53776b41ab9475e7fa6f59" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_alloc </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>SECTION:linked_lists_double : Doubly-Linked Lists : linked lists containing integer values or pointers to data, with the ability to iterate over the list in both directions</p>
<p>The <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> structure and its associated functions provide a standard doubly-linked list data structure.</p>
<p>Each element in the list contains a piece of data, together with pointers which link to the previous and next elements in the list. Using these pointers it is possible to move through the list in both directions (unlike the &lt;link linkend="glib-Singly-Linked-lists"&gt;Singly-Linked Lists&lt;/link&gt; which only allows movement through the list in the forward direction).</p>
<p>The data contained in each element can be either integer values, by using one of the &lt;link linkend="glib-Type-Conversion-Macros"&gt;Type Conversion Macros&lt;/link&gt;, or simply pointers to any type of data.</p>
<p>List elements are allocated from the &lt;link linkend="glib-Memory-Slices"&gt;slice allocator&lt;/link&gt;, which is more efficient than allocating elements individually.</p>
<p>Note that most of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> functions expect to be passed a pointer to the first element in the list. The functions which insert elements return the new start of the list, which may have changed.</p>
<p>There is no function to create a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. NULL is considered to be the empty list so you simply set a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* to NULL.</p>
<p>To add elements, use <a class="el" href="copia_2glib_2glist_8c.html#a62f22a2386ab26eb3122f5cfc39f7542">g_list_append()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a67e41da1adf810675a3f80219abb3a21">g_list_prepend()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a6f0a6faa9f390274fb9380c587ac36ca">g_list_insert()</a> and <a class="el" href="copia_2glib_2glist_8c.html#a9a571a285fe181ad5e35182d98f5d980">g_list_insert_sorted()</a>.</p>
<p>To remove elements, use <a class="el" href="copia_2glib_2glist_8c.html#af50999802f999b56575af3e900ccd1d6">g_list_remove()</a>.</p>
<p>To find elements in the list use <a class="el" href="copia_2glib_2glist_8c.html#a4527986b2894404883f458ec7f2cb7c7">g_list_first()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a134a27d2919b206e455edbf9e5cdf713">g_list_last()</a>, <a class="el" href="copia_2glib_2glist_8h.html#ad357081cc126f8f62210b1b7cfe052f8">g_list_next()</a>, <a class="el" href="copia_2glib_2glist_8h.html#ace5a92b06a2bbca53a400bae2a512915">g_list_previous()</a>, <a class="el" href="copia_2glib_2glist_8c.html#abda742750492489d51e20e42117fe9de">g_list_nth()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a895a730faf000b8eb288a19ed09e0d3b">g_list_nth_data()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a067884815231223277442e4f0a38af24">g_list_find()</a> and <a class="el" href="copia_2glib_2glist_8c.html#ac113d1bab7b7717aad87f750f721d68e">g_list_find_custom()</a>.</p>
<p>To find the index of an element use <a class="el" href="copia_2glib_2glist_8c.html#a17eadc99e076060f5f5b27de1a195b4a">g_list_position()</a> and <a class="el" href="copia_2glib_2glist_8c.html#a058dc6012370d86515825363983b2b52">g_list_index()</a>.</p>
<p>To call a function for each element in the list use <a class="el" href="copia_2glib_2glist_8c.html#a8bb27637a918563f009f26dab7a482a1">g_list_foreach()</a>.</p>
<p>To free the entire list, use <a class="el" href="copia_2glib_2glist_8c.html#a854e205ef31d2f09c72eecf87a697130">g_list_free()</a>. GList: : holds the element's data, which can be a pointer to any kind of data, or any integer value using the &lt;link linkend="glib-Type-Conversion-Macros"&gt;Type Conversion Macros&lt;/link&gt;. : contains the link to the next element in the list. : contains the link to the previous element in the list.</p>
<p>The <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> struct is used for each element in a doubly-linked list. g_list_previous: : an element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. : the previous element, or NULL if there are no previous elements.</p>
<p>A convenience macro to get the previous element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. g_list_next: : an element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. : the next element, or NULL if there are no more elements.</p>
<p>A convenience macro to get the next element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. g_list_alloc: : a pointer to the newly-allocated <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element.</p>
<p>Allocates space for one <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element. It is called by <a class="el" href="copia_2glib_2glist_8c.html#a62f22a2386ab26eb3122f5cfc39f7542">g_list_append()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a67e41da1adf810675a3f80219abb3a21">g_list_prepend()</a>, <a class="el" href="copia_2glib_2glist_8c.html#a6f0a6faa9f390274fb9380c587ac36ca">g_list_insert()</a> and <a class="el" href="copia_2glib_2glist_8c.html#a9a571a285fe181ad5e35182d98f5d980">g_list_insert_sorted()</a> and so is rarely used on its own. </p>

</div>
</div>
<a class="anchor" id="a62f22a2386ab26eb3122f5cfc39f7542"></a><!-- doxytag: member="glist.c::g_list_append" ref="a62f22a2386ab26eb3122f5cfc39f7542" args="(GList *list, gpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_append </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_append: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data for the new element</p>
<p>Adds a new element on to the end of the list.</p>
<p>&lt;note&gt;</p>
<p>The return value is the new start of the list, which may have changed, so make sure you store the new value. </p>
<p>&lt;/note&gt;</p>
<p>&lt;note&gt;</p>
<p>Note that <a class="el" href="copia_2glib_2glist_8c.html#a62f22a2386ab26eb3122f5cfc39f7542">g_list_append()</a> has to traverse the entire list to find the end, which is inefficient when adding multiple elements. A common idiom to avoid the inefficiency is to prepend the elements and reverse the list when all elements have been added. </p>
<p>&lt;/note&gt;</p>
<p>|[ / Notice that these are initialized to the empty list. / GList *list = NULL, *number_list = NULL;</p>
<p>/ This is a list of strings. / list = g_list_append (list, "first"); list = g_list_append (list, "second");</p>
<p>/ This is a list of integers. / number_list = g_list_append (number_list, GINT_TO_POINTER (27)); number_list = g_list_append (number_list, GINT_TO_POINTER (14)); ]|</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="aeec3ce9917bbee8a3f760b0e92f29846"></a><!-- doxytag: member="glist.c::g_list_concat" ref="aeec3ce9917bbee8a3f760b0e92f29846" args="(GList *list1, GList *list2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_concat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_concat: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> to add to the end of the first <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Adds the second <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> onto the end of the first <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. Note that the elements of the second <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> are not copied. They are used directly.</p>
<p>Returns: the start of the new <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="aa9ae55f47cd2bdfc0f4a6afda1356dc0"></a><!-- doxytag: member="glist.c::g_list_copy" ref="aa9ae55f47cd2bdfc0f4a6afda1356dc0" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_copy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_copy: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Copies a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>.</p>
<p>&lt;note&gt;</p>
<p>Note that this is a "shallow" copy. If the list elements consist of pointers to data, the pointers are copied but the actual data is not. </p>
<p>&lt;/note&gt;</p>
<p>Returns: a copy of  </p>

</div>
</div>
<a class="anchor" id="adf7bbf496eec07e3ded2da1512c138a4"></a><!-- doxytag: member="glist.c::g_list_data" ref="adf7bbf496eec07e3ded2da1512c138a4" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> g_list_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_data: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Gets the data of the current node.</p>
<p>Returns: the element's data, or NULL if the position is off the end of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="a0af21a369c767f8a9aec049bd15cc259"></a><!-- doxytag: member="glist.c::g_list_delete_link" ref="a0af21a369c767f8a9aec049bd15cc259" args="(GList *list, GList *link_)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_delete_link </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>link_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_delete_link: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : node to delete from </p>
<p>Removes the node link_ from the list and frees it. Compare this to <a class="el" href="copia_2glib_2glist_8c.html#a2fdd458d0c82860966956a71d3466023">g_list_remove_link()</a> which removes the node without freeing it.</p>
<p>Returns: the new head of  </p>

</div>
</div>
<a class="anchor" id="a067884815231223277442e4f0a38af24"></a><!-- doxytag: member="glist.c::g_list_find" ref="a067884815231223277442e4f0a38af24" args="(GList *list, gconstpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_find </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_find: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the element data to find</p>
<p>Finds the element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> which contains the given data.</p>
<p>Returns: the found <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element, or NULL if it is not found </p>

</div>
</div>
<a class="anchor" id="ac113d1bab7b7717aad87f750f721d68e"></a><!-- doxytag: member="glist.c::g_list_find_custom" ref="ac113d1bab7b7717aad87f750f721d68e" args="(GList *list, gconstpointer data, GCompareFunc func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_find_custom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a>&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_find_custom: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : user data passed to the function : the function to call for each element. It should return 0 when the desired element is found</p>
<p>Finds an element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, using a supplied function to find the desired element. It iterates over the list, calling the given function which should return 0 when the desired element is found. The function takes two <a class="el" href="glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a> arguments, the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element's data as the first argument and the given user data.</p>
<p>Returns: the found <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element, or NULL if it is not found </p>

</div>
</div>
<a class="anchor" id="a4527986b2894404883f458ec7f2cb7c7"></a><!-- doxytag: member="glist.c::g_list_first" ref="a4527986b2894404883f458ec7f2cb7c7" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_first </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_first: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Gets the first element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>.</p>
<p>Returns: the first element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, or NULL if the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> has no elements </p>

</div>
</div>
<a class="anchor" id="a8bb27637a918563f009f26dab7a482a1"></a><!-- doxytag: member="glist.c::g_list_foreach" ref="a8bb27637a918563f009f26dab7a482a1" args="(GList *list, GFunc func, gpointer user_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void g_list_foreach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#a87e2c2832a8f8d8b0a32102f986dc67b">GFunc</a>&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_foreach: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the function to call with each element's data : user data to pass to the function</p>
<p>Calls a function for each element of a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. GFunc: : the element's data. : user data passed to <a class="el" href="copia_2glib_2glist_8c.html#a8bb27637a918563f009f26dab7a482a1">g_list_foreach()</a> or g_slist_foreach().</p>
<p>Specifies the type of functions passed to <a class="el" href="copia_2glib_2glist_8c.html#a8bb27637a918563f009f26dab7a482a1">g_list_foreach()</a> and g_slist_foreach(). </p>

</div>
</div>
<a class="anchor" id="a854e205ef31d2f09c72eecf87a697130"></a><!-- doxytag: member="glist.c::g_list_free" ref="a854e205ef31d2f09c72eecf87a697130" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void g_list_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_free: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Frees all of the memory used by a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. The freed elements are returned to the slice allocator.</p>
<p>&lt;note&gt;</p>
<p>If list elements contain dynamically-allocated memory, you should either use <a class="el" href="copia_2glib_2glist_8c.html#ace92504270cab23bc2ecec535e67c9f3">g_list_free_full()</a> or free them manually first. </p>
<p>&lt;/note&gt; </p>

</div>
</div>
<a class="anchor" id="a74a986fdb039f75aaa921f56900a8d58"></a><!-- doxytag: member="glist.c::g_list_free_1" ref="a74a986fdb039f75aaa921f56900a8d58" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void g_list_free_1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_free_1: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element</p>
<p>Frees one <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> element. It is usually used after <a class="el" href="copia_2glib_2glist_8c.html#a2fdd458d0c82860966956a71d3466023">g_list_remove_link()</a>. g_list_free1:</p>
<p>Another name for <a class="el" href="copia_2glib_2glist_8c.html#a74a986fdb039f75aaa921f56900a8d58">g_list_free_1()</a>. </p>

</div>
</div>
<a class="anchor" id="ace92504270cab23bc2ecec535e67c9f3"></a><!-- doxytag: member="glist.c::g_list_free_full" ref="ace92504270cab23bc2ecec535e67c9f3" args="(GList *list, GDestroyNotify free_func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void g_list_free_full </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#a44a19db7c742be2745ca8e4abcaf3a91">GDestroyNotify</a>&#160;</td>
          <td class="paramname"><em>free_func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_free_full: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the function to be called to free each element's data</p>
<p>Convenience method, which frees all the memory used by a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, and calls the specified destroy function on every element's data.</p>
<p>Since: 2.28 </p>

</div>
</div>
<a class="anchor" id="a058dc6012370d86515825363983b2b52"></a><!-- doxytag: member="glist.c::g_list_index" ref="a058dc6012370d86515825363983b2b52" args="(GList *list, gconstpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a> g_list_index </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_index: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data to find</p>
<p>Gets the position of the element containing the given data (starting from 0).</p>
<p>Returns: the index of the element containing the data, or -1 if the data is not found </p>

</div>
</div>
<a class="anchor" id="a6f0a6faa9f390274fb9380c587ac36ca"></a><!-- doxytag: member="glist.c::g_list_insert" ref="a6f0a6faa9f390274fb9380c587ac36ca" args="(GList *list, gpointer data, gint position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_insert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a>&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_insert: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data for the new element : the position to insert the element. If this is negative, or is larger than the number of elements in the list, the new element is added on to the end of the list.</p>
<p>Inserts a new element into the list at the given position.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="aca9fa4a775a7045f49efc0ec43d6da7d"></a><!-- doxytag: member="glist.c::g_list_insert_before" ref="aca9fa4a775a7045f49efc0ec43d6da7d" args="(GList *list, GList *sibling, gpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_insert_before </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>sibling</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_insert_before: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the list element before which the new element is inserted or NULL to insert at the end of the list : the data for the new element</p>
<p>Inserts a new element into the list before the given position.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="a9a571a285fe181ad5e35182d98f5d980"></a><!-- doxytag: member="glist.c::g_list_insert_sorted" ref="a9a571a285fe181ad5e35182d98f5d980" args="(GList *list, gpointer data, GCompareFunc func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_insert_sorted </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a>&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_insert_sorted: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data for the new element : the function to compare elements in the list. It should return a number &gt; 0 if the first parameter comes after the second parameter in the sort order.</p>
<p>Inserts a new element into the list, using the given comparison function to determine its position.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="ae330a1239fd8568f907bb5a9ad5edbc4"></a><!-- doxytag: member="glist.c::g_list_insert_sorted_with_data" ref="ae330a1239fd8568f907bb5a9ad5edbc4" args="(GList *list, gpointer data, GCompareDataFunc func, gpointer user_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_insert_sorted_with_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#a2d1f7b50283557b228e7d7e7679f4064">GCompareDataFunc</a>&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_insert_sorted_with_data: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data for the new element : the function to compare elements in the list. It should return a number &gt; 0 if the first parameter comes after the second parameter in the sort order. : user data to pass to comparison function.</p>
<p>Inserts a new element into the list, using the given comparison function to determine its position.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Since: 2.10 </p>

</div>
</div>
<a class="anchor" id="a134a27d2919b206e455edbf9e5cdf713"></a><!-- doxytag: member="glist.c::g_list_last" ref="a134a27d2919b206e455edbf9e5cdf713" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_last </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_last: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Gets the last element in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>.</p>
<p>Returns: the last element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, or NULL if the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> has no elements </p>

</div>
</div>
<a class="anchor" id="a86ccb0afcc8bacceeca60349d39dfebc"></a><!-- doxytag: member="glist.c::g_list_length" ref="a86ccb0afcc8bacceeca60349d39dfebc" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a> g_list_length </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_length: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Gets the number of elements in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>.</p>
<p>&lt;note&gt;</p>
<p>This function iterates over the whole list to count its elements. </p>
<p>&lt;/note&gt;</p>
<p>Returns: the number of elements in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="abda742750492489d51e20e42117fe9de"></a><!-- doxytag: member="glist.c::g_list_nth" ref="abda742750492489d51e20e42117fe9de" args="(GList *list, guint n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_nth </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a>&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_nth: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> <br/>
: the position of the element, counting from 0</p>
<p>Gets the element at the given position in a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>.</p>
<p>Returns: the element, or NULL if the position is off the end of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="a895a730faf000b8eb288a19ed09e0d3b"></a><!-- doxytag: member="glist.c::g_list_nth_data" ref="a895a730faf000b8eb288a19ed09e0d3b" args="(GList *list, guint n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a> g_list_nth_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a>&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_nth_data: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> <br/>
: the position of the element</p>
<p>Gets the data of the element at the given position.</p>
<p>Returns: the element's data, or NULL if the position is off the end of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="a20a8a5b67391006022631ab4c1a6891a"></a><!-- doxytag: member="glist.c::g_list_nth_prev" ref="a20a8a5b67391006022631ab4c1a6891a" args="(GList *list, guint n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_nth_prev </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#af0d5fc363adb00f8d725f36331ff0a12">guint</a>&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_nth_prev: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> <br/>
: the position of the element, counting from 0</p>
<p>Gets the element <br/>
 places before .</p>
<p>Returns: the element, or NULL if the position is off the end of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="a17eadc99e076060f5f5b27de1a195b4a"></a><!-- doxytag: member="glist.c::g_list_position" ref="a17eadc99e076060f5f5b27de1a195b4a" args="(GList *list, GList *llink)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2gtypes_8h.html#a94f7fe39540fb07a3c09be37e16112b0">gint</a> g_list_position </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>llink</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_position: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : an element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Gets the position of the given element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> (starting from 0).</p>
<p>Returns: the position of the element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, or -1 if the element is not found </p>

</div>
</div>
<a class="anchor" id="a67e41da1adf810675a3f80219abb3a21"></a><!-- doxytag: member="glist.c::g_list_prepend" ref="a67e41da1adf810675a3f80219abb3a21" args="(GList *list, gpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_prepend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_prepend: : a pointer to a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data for the new element</p>
<p>Adds a new element on to the start of the list.</p>
<p>&lt;note&gt;</p>
<p>The return value is the new start of the list, which may have changed, so make sure you store the new value. </p>
<p>&lt;/note&gt;</p>
<p>|[ / Notice that it is initialized to the empty list. / GList *list = NULL; list = g_list_prepend (list, "last"); list = g_list_prepend (list, "first"); ]|</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="af50999802f999b56575af3e900ccd1d6"></a><!-- doxytag: member="glist.c::g_list_remove" ref="af50999802f999b56575af3e900ccd1d6" args="(GList *list, gconstpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_remove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_remove: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the data of the element to remove</p>
<p>Removes an element from a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. If two elements contain the same data, only the first is removed. If none of the elements contain the data, the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> is unchanged.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="ab27a7271ebedbf4f761b80b624686b55"></a><!-- doxytag: member="glist.c::g_list_remove_all" ref="ab27a7271ebedbf4f761b80b624686b55" args="(GList *list, gconstpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_remove_all </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a993597d6defd7d9a72b501697875b1e8">gconstpointer</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_remove_all: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : data to remove</p>
<p>Removes all list nodes with data equal to . Returns the new head of the list. Contrast with <a class="el" href="copia_2glib_2glist_8c.html#af50999802f999b56575af3e900ccd1d6">g_list_remove()</a> which removes only the first node matching the given data.</p>
<p>Returns: new head of  </p>

</div>
</div>
<a class="anchor" id="a2fdd458d0c82860966956a71d3466023"></a><!-- doxytag: member="glist.c::g_list_remove_link" ref="a2fdd458d0c82860966956a71d3466023" args="(GList *list, GList *llink)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_remove_link </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>llink</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_remove_link: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : an element in the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Removes an element from a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, without freeing the element. The removed element's prev and next links are set to NULL, so that it becomes a self-contained list with one element.</p>
<p>Returns: the new start of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>, without the element </p>

</div>
</div>
<a class="anchor" id="ae1267bbe29acab30f89ab8e272293e7d"></a><!-- doxytag: member="glist.c::g_list_reverse" ref="ae1267bbe29acab30f89ab8e272293e7d" args="(GList *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_reverse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_reverse: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a></p>
<p>Reverses a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. It simply switches the next and prev pointers of each element.</p>
<p>Returns: the start of the reversed <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> </p>

</div>
</div>
<a class="anchor" id="ae96cccb4748f13729156266b5d16601c"></a><!-- doxytag: member="glist.c::g_list_sort" ref="ae96cccb4748f13729156266b5d16601c" args="(GList *list, GCompareFunc compare_func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_sort </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#abc1949532c9a87a77c064054a2d8f2c0">GCompareFunc</a>&#160;</td>
          <td class="paramname"><em>compare_func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_sort: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : the comparison function used to sort the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>. This function is passed the data from 2 elements of the <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> and should return 0 if they are equal, a negative value if the first element comes before the second, or a positive value if the first element comes after the second.</p>
<p>Sorts a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> using the given comparison function.</p>
<p>Returns: the start of the sorted <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> GCompareFunc: <em></em>: a value. <b></b>: a value to compare with. : negative value if <em>&lt;</em> <b></b>; zero if <em>=</em> <b></b>; positive value if <em>&gt;</em> <b></b>.</p>
<p>Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second. </p>

</div>
</div>
<a class="anchor" id="aca49e058d8ff9feef8fb7cabafa9ce3a"></a><!-- doxytag: member="glist.c::g_list_sort_with_data" ref="aca49e058d8ff9feef8fb7cabafa9ce3a" args="(GList *list, GCompareDataFunc compare_func, gpointer user_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a>* g_list_sort_with_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="glib_2gtypes_8h.html#a2d1f7b50283557b228e7d7e7679f4064">GCompareDataFunc</a>&#160;</td>
          <td class="paramname"><em>compare_func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="copia_2glib_2gtypes_8h.html#a82239d7d1ad8c85a21637b644b4e7832">gpointer</a>&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>g_list_sort_with_data: : a <a class="el" href="glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> : comparison function : user data to pass to comparison function</p>
<p>Like <a class="el" href="copia_2glib_2glist_8c.html#ae96cccb4748f13729156266b5d16601c">g_list_sort()</a>, but the comparison function accepts a user data argument.</p>
<p>Returns: the new head of  GCompareDataFunc: <em></em>: a value. <b></b>: a value to compare with. : user data to pass to comparison function. : negative value if <em>&lt;</em> <b></b>; zero if <em>=</em> <b></b>; positive value if <em>&gt;</em> <b></b>.</p>
<p>Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second. </p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="copia_2glib_2glist_8c.html">glist.c</a>      </li>
      <li class="footer">Generado el Lunes, 6 de Junio de 2011 20:03:18 para Proyecto de Matemática Discreta 2 - Parte II: DINIC por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
